<?php ob_start(); ?>
<?php include("mainlist.php");?>
<table class="reference" cellspacing="0" border="0" width="995">
	<tr>
		<td width="200" valign="top">					
			<?php
				include("menuleftcategory.php");
			?>
		</td>	
		
		<td width="795" valign="top">
			<table cellspacing="0" border="0" width="795">
				<tr>
					
					<td width="795" class="title_manager_cate">Sản phẩm</td>
				
				</tr>
			</table>
			<table class="reference" cellspacing="0" border="1" width="795">
				<tr>
					<th align="left">Stt</th>
					<th align="left">Tên File</th>
					<th align="left">Số lượt xem</th>
					<th align="left">Ngày khởi tạo</th>
					
					
				</tr>
				<?php
						$query = "SELECT * FROM productdetails";
						$result = mysql_query($query) or die(mysql_error());
						$i=1;
						while($rows = mysql_fetch_array($result)){?>
						<tr>
							<td><?php echo $i++;?></td>
							<td><?php echo $rows['productname'];?></td>
							<td><?php echo $rows['productView'];?></td>
							<td><?php $ngay = date('d/m/Y', $rows['dateCreated']); echo $ngay;?></td>						
						</tr>
					<?php
					}
					?>    
			</table>
		</td>
	</tr>	
</table>